package com.geekhalo.admin.domain.menu.update;

import com.geekhalo.lego.core.command.CommandService;
import com.geekhalo.lego.core.command.CommandServiceDefinition;
import com.geekhalo.lego.core.command.CommandMethodDefinition;

import com.geekhalo.admin.domain.menu.Menu;
import com.geekhalo.admin.domain.menu.MenuCommandRepository;

import com.geekhalo.admin.domain.menu.update.UpdateMenuCommand;
import com.geekhalo.admin.domain.menu.update.UpdateMenuContext;
import java.lang.Void;


@CommandServiceDefinition(domainClass = Menu.class, repositoryClass = MenuCommandRepository.class)
public interface UpdateMenuService
    extends CommandService<UpdateMenuCommand, Void> {

    @Override
    @CommandMethodDefinition(contextClass = UpdateMenuContext.class)
    Void execute(UpdateMenuCommand command);
}
